﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DependencyInjectionExample
{
	//Constructor
	public class MainClass2
	{
		private IDependentClass dependentClass;
		public MainClass2(IDependentClass dependentClass)
		{
			this.dependentClass = dependentClass;
		}

		public void DoSomething()
		{
			dependentClass.DoSomethingInDependentClass();
		} 
	}
}
